package com.dusk.net
{
	public class AssetUrl
	{
		
		public static var PATH:String = "./";
		
		public static function getCommonAssetsUrl(url:String):String
		{
			return AssetUrl.PATH + "assets/" + url;
		}
		
		public static function getCommonAssetsUrlByName(name:String,type:String = ".swf"):String
		{
			return AssetUrl.PATH + "assets/" + name + type;
		}
		
		public static function getInterFaceAssetsUrl(name:String):String
		{
			return AssetUrl.PATH + "assets/uiAsset/" + name + ".swf";
		}
		
		public static function getPetAssetsUrl(name:String):String
		{
			return AssetUrl.PATH + "assets/pet/" + name + ".swf";
		}
		
		public static function getSoundAssetUrl(name:String):String
		{
			return AssetUrl.PATH + "assets/sound/" + name + ".mp3";
		}
		
		public static function getConfigAssetUrl(name:String):String
		{
			return AssetUrl.PATH + "assets/config/" + name;
		}

		public static function getLibUrl(name:String):String
		{
			return AssetUrl.PATH + "assets/lib/" + name;
		}
		
		public static function getRoleAssetUrl(name:String):String
		{
			return "role/" + name;
		}
	}
}
